import Layout from '@/page/index/'

export default [{
    path: '/login',
    name: '登录页',
    component: () =>
        import( /* webpackChunkName: "page" */ '@/page/login/index'),
    meta: {
        keepAlive: true,
        isTab: false,
        isAuth: false
    }
},
    {
        path: '/form-design/data/previewTableData/:tableId',
        name: '动态表单数据查询',
        component: () =>
            import( /* webpackChunkName: "page" */ '@/views/start/formEngine/data/index.vue'),
        meta: {
            keepAlive: true,
            isTab: false,
            isAuth: true
        }
    },
    {
        path: '/activiti/start/:modelId',
        name: '流程启动',
        component: () =>
            import( /* webpackChunkName: "page" */ '@/views/start/activiti/instance/activitiStart.vue'),
        meta: {
            keepAlive: true,
            isTab: false,
            isAuth: true
        }
    },
    {
        path: '/activit/designActivit/:modelId',
        name: '设计器',
        component: () =>
            import( /* webpackChunkName: "page" */ '@/page/activitDesign/index_1_1'),
        meta: {
            keepAlive: false,
            isTab: false,
            isAuth: true
        }
    },

    {
        path: '/activit/design/:modelId',
        name: '流程设计',
        component: () =>
            import( /* webpackChunkName: "page" */ '@/page/activitDesign/index_1_0'),
        meta: {
            keepAlive: false,
            isTab: false,
            isAuth: true
        }
    },
    {
        path: '/start/formEngine/design/:formId',
        name: '表单设计',
        component: () =>
            import( /* webpackChunkName: "page" */ '@/views/start/formEngine/form/design'),
        meta: {
            keepAlive: false,
            isTab: false,
            isAuth: true
        }
    },
    {
        path: '/form-engine',
        name: '登录页',
        component: () =>
            import( /* webpackChunkName: "page" */ '@/page/form-design'),
        meta: {
            keepAlive: true,
            isTab: false,
            isAuth: false
        }
    },
    {
        path: '/lock',
        name: '锁屏页',
        component: () =>
            import( /* webpackChunkName: "page" */ '@/page/lock/index'),
        meta: {
            keepAlive: true,
            isTab: false,
            isAuth: false
        }
    },
    {
        path: '/404',
        component: () =>
            import( /* webpackChunkName: "page" */ '@/components/error-page/404'),
        name: '404',
        meta: {
            keepAlive: true,
            isTab: false,
            isAuth: false
        }

    },
    {
        path: '/403',
        component: () =>
            import( /* webpackChunkName: "page" */ '@/components/error-page/403'),
        name: '403',
        meta: {
            keepAlive: true,
            isTab: false,
            isAuth: false
        }
    },
    {
        path: '/500',
        component: () =>
            import( /* webpackChunkName: "page" */ '@/components/error-page/500'),
        name: '500',
        meta: {
            keepAlive: true,
            isTab: false,
            isAuth: false
        }
    },
    {
        path: '/',
        name: '主页',
        redirect: '/wel',
        meta: {
            keepAlive: true,
            isTab: false,
            isAuth: false
        }
    },
    {
        path: '/myiframe',
        component: Layout,
        redirect: '/myiframe',
        children: [{
            path: ":routerPath",
            name: 'iframe',
            component: () =>
                import( /* webpackChunkName: "page" */ '@/components/iframe/main'),
            props: true
        }]

    },
    {
        path: '*',
        redirect: '/404'
    }
]
